package com.xiaoyun.service;

import com.xiaoyun.vo.Pass;
import com.xiaoyun.vo.Response;

/**
 * 获取用户个人优惠券信息
 */
public interface IUserPassService {
    /**
     * 获取用户个人优惠券信息，即我的优惠券的实现
     *
     * @param userId
     * @return
     * @throws Exception
     */
    Response getUserPassInfo(Long userId) throws Exception;

    /**
     * 获取用户已经消费了的优惠券，即已使用优惠券功能实现
     *
     * @param userId
     * @return
     * @throws Exception
     */
    Response getUserUsePassInfo(Long userId) throws Exception;

    /**
     * 获取用户所有的优惠券
     *
     * @param userId
     * @return
     * @throws Exception
     */
    Response getUserAllPassInfo(Long userId) throws Exception;

    /**
     * 用户使用优惠券
     *
     * @param pass
     * @return
     * @throws Exception
     */
    Response userUsePass(Pass pass) throws Exception;
}
